package Math类;


public class MathDemo {

	public static void main(String[] args) {
		System.out.println(Math.max(2.5, 3));
		System.out.println(Math.abs(-23));
		System.out.println("50-99之间="+(50+(int)(Math.random()*50)));
		System.out.println((int)(Math.random()*(65535+1)));
		System.out.println("a="+(int)'z');
		System.out.println((int)'a'+(int)Math.random() * ((int)'z' - (int)'a'));
		System.out.println((int)(Math.random() * ((int)'z' - (int)'a' + 1)));
		System.out.println((char)('a' + Math.random() * ('z' - 'a' + 1)));
		System.out.println("z-a="+((int)(Math.random()*((int)'z' - (int)'a' + 1))));
		
		System.out.println("z-a="+(char)((int)'a' + (int)(Math.random() * ((int)'z' -(int)'a' + 1))));
		//简写
		System.out.println("z-a="+(char)('a' + Math.random() * ('z' -'a' + 1)));
		
		System.out.println(9%10);
	}
}
